﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Core.Persistent;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Core.MyLinq;

namespace Huirui.Cavan.Domain.MainBoundedContext.StockModule
{
    public class WareHouseSpecification : ISpecification<WareHouse, WareHouseSearch>
    {
        #region ISpecification<WareHouse,WareHouseSearch> Members

        public WareHouseSearch SearchParams
        {
            get;
            set;
        }

        #endregion

        #region ISpecification<WareHouse> Members

        public System.Linq.Expressions.Expression<Func<WareHouse, bool>> Expression
        {
            get
            {
                IQueryBuilder<WareHouse> queryBuilder = QueryBuilder.Create<WareHouse>();

                if (null != SearchParams)
                {
                }

                return queryBuilder.Expression.Expand();
            }
        }

        #endregion
    }
}
